<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<BaLs.Models.Link>" %>

    <%= Html.ValidationSummary() %>

    <% using (Html.BeginForm("Create","link")) {%>

        <fieldset>
            <legend>Fields</legend>           
            <p>
                <label for="url">url:</label>
                <%= Html.TextBox("url",Model.url) %>
                <%= Html.ValidationMessage("url", "*") %>
            </p>
            <p>
                <label for="Title">title:</label>
                <%= Html.TextBox("title",Model.title) %>
                <%= Html.ValidationMessage("title", "*") %>
            </p>
            <p>
                <label for="Notes">notes:</label>
                <%= Html.TextBox("notes") %>
                <%= Html.ValidationMessage("notes", "*") %>
            </p>
            <p>
                <label for="Make Private">private_flag:</label>
                <%= Html.CheckBox("private_flag") %>
                <%= Html.ValidationMessage("private_flag", "*") %>
            </p>
            <%= Html.Hidden("state","1") %>
            <p>
                <label for="tag">Tags:</label>
                <%= Html.TextBox("tag") %>
                <%--<%= Html.ValidationMessage("owner", "*") %>--%>
            </p>
           <%-- <p>
                <label for="owner">owner:</label>
                <%= Html.TextBox("owner") %>
                <%= Html.ValidationMessage("owner", "*") %>
            </p>
            <p>
                <label for="create_date">create_date:</label>
                <%= Html.TextBox("create_date") %>
                <%= Html.ValidationMessage("create_date", "*") %>
                
            </p>--%>
            <p>
                <input type="submit" value="Create" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%=Html.ActionLink("Back to List", "Index") %>
    </div>


